package org.ntu.rtsearch.index.model;

public class Tweet {
	private String userId;
	private String text;
	private long timeStamp;
	private String rtCount;
	private int isFav;

	public Tweet(String line) {
		String[] items = line.split("\\:\\^");
		if(items.length != 5)
			return;
		timeStamp = Long.parseLong(items[0]);
		userId = items[1];
		text = items[2];
		rtCount = items[3];
		isFav = Integer.parseInt(items[4]);
	}
	
	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public long getTimeStamp() {
		return timeStamp;
	}

	public void setTimeStamp(long timeStamp) {
		this.timeStamp = timeStamp;
	}

	

	public void setIsFav(int isFav) {
		this.isFav = isFav;
	}

	public int getIsFav() {
		return isFav;
	}

	public void setRtCount(String rtCount) {
		this.rtCount = rtCount;
	}

	public String getRtCount() {
		return rtCount;
	}

}
